﻿<%@ Page Title="" Language="C#" MasterPageFile="~/shopping/backstage.Master" AutoEventWireup="true" CodeBehind="Goods_management.aspx.cs" Inherits="YiDaShuiHang.shopping.Goods_management" %>

<%@ Register Src="~/Alert.ascx" TagPrefix="uc1" TagName="Alert" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="showpingjs/goodmanager.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#typemanager").remove("titleclass");
            $("#ordermanager").remove("titleclass");
            $("#sellmanager").remove("titleclass");
            $("#staffmanager").remove("titleclass");
            $("#productmanager").addClass("titleclass");
            document.getElementById('Span12').style.marginTop = '9px';
            $('#demolist li').on('click', function () {
                var content = $(this).text();
                $("#dateboxs").text(content);
                document.getElementById('Span12').style.marginTop = '9px';
            });
            goodmanager.getdata("1", "|");
        })

    </script>
    <style type="text/css">
        #small input {
        padding:2px 10px;margin:0px 10px;width:70px
        
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <uc1:Alert runat="server" ID="Alert" />

    <div class="container" style="margin-top: 30px;">
        <div class="row">
            <div class="col-md-2 btn-group"  style="font-size:20px; text-align:center">商品管理</div>
                <div class="col-md-3 btn-group  " style="margin-left:20px" >
           
                    <button class="btn btn-default dropdown-toggle" type="button" id="Button6"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" style=" height: 34px; width: 100%">
                        <span id="dateboxs" style="width:80%">全部</span><span style=" width:10% ">
                            <span id="Span12" class="caret" style="margin-top:3px; float:right"></span></span>
                    </button>
                    <ul class="dropdown-menu" style=" margin-left:5% ;width:90%" role="menu" id="demolist">
                    <li style=" margin-left:8%"><a>全部</a></li>
                        <li style=" margin-left:8%"><a >出售中</a></li>
                        <li style=" margin-left:8%"><a >已售完</a></li>
                        <li style=" margin-left:8%"><a >已下架</a></li>
                    </ul>
                </div>
                <div class="col-md-3"style=" margin-left:-14px;">
                   <input type="text" class="form-control" placeholder="请输入关键字" style="width:82%;height:34px" id="keyword" />
                        </div>  
                <div class="col-md-2"style=" margin-left:-50px">
                    <input class="btn btn-info form-control " value="查询" type="button" onclick="goodmanager.search()"  style="height:34px" />
                        
                    </div>
                <div class="col-lg-2 col-md-2 col-sm-2 text-center">
                <input type="button" value="添加商品" class="btn btn-sm btn-lg btn-info" style="height: 34px;" onclick="window.location.href='addprt.aspx' "/>
                   
            </div>
            </div>
        <br />
        <div class="row">
            <div class="col-lg-10 col-md-9 col-sm-8 col-lg-offset-1 col-md-offset-1 col-sm-offset-1">
             
                <div class="tab-content">
                <%--全部--%>
                    <div role="tabpanel" class="tab-pane active" id="all">
                        <table class="table table-responsive table-bordered table-striped table-condensed text-center">
                        <thead>
                        <tr style=" font-size:15px;">
                        <td>商品名</td>
                        <td>价格</td>
                        <td>销量</td>
                        <td>库存</td>
                        <td>分类</td>
                        <td>更新时间</td>
                        <td>操作</td>
                        </tr>
                        </thead>
                        <tbody id="tbodyList">
                        </tbody>
                        </table>
                       </div>
                
                </div>
            </div>
        </div>

          <div style="  margin-left:5%">
                <table>
                    <tr>
                       
                        <td style=" width:80%">
                            <div class="fr1">
                                <div class="demo">
                                    <div id="example" class="pagination">
                                    </div>
                                </div>
                            </div>
                        </td>
                        
                         <td style=" width:10%">
                            <div id="record_shu">
                            </div>
                        </td>
                    </tr>
                </table>
            </div>

    </div>
</asp:Content>
